


//
//  SinaCommon.swift
//  Sina
//
//  Created by yang on 2017/8/6.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

//代码评审
//客户端   ->  代码评审系统（项目经理） ->   代码仓库服务器（git／svn）

import Foundation
import UIKit

//相当于OC的PCH文件

//设置高度
let kScreenBounds = UIScreen.main.bounds

//设置宽度
let kScreenWidth = UIScreen.main.bounds.width

//设置高度
let kScreenHeight = UIScreen.main.bounds.height

//用户需要登录的通知
let UserShouldLoginNotification = "UserShouldLoginNotification"

//用户登录成功的通知
let UserLoginSuccessNotification = "UserLoginSuccessNotification"

//MARK: - 照片浏览通知定义
//selectedIndex：选中照片索引
//urls：浏览照片 URL 字符串数组
//parentImageViews：父视图的图像视图数组，用户展现和解除转场动画参照
//微博cell浏览图片通知
let CPJWeiboCellBrowserPhotoNotification = "CPJWeiboCellBrowserPhotoNotification"

//选中照片索引的key
let CPJWeiboCellBrowserPhotoSelectedIndexKey = "CPJWeiboCellBrowserPhotoSelectedIndexKey"
//浏览照片url的key
let CPJWeiboCellBrowserPhotoUrlKey = "CPJWeiboCellBrowserPhotoUrlKey"
//父视图图像视图数组的key
let CPJWeiboCellBrowserPhotoParentImageViewsKey = "CPJWeiboCellBrowserPhotoParentImageViewsKey"



//地址链接
let OAuthUrlString = "https://api.weibo.com/oauth2/authorize"

//应用AppKey
let SinaAppKey = "3198507748"

//AppSecret
let SinaAppSecret = "8819f11b11275b59fe6d0b0bb7b87e11"

//回调地址 
let SinaAppRedirect_uri = "https://www.baidu.com/"

//获取沙盒路径
let kDocumentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]

//多张图片视图的大小
//图片视图内侧间距
let CPJPictureViewInnerMargin = CGFloat(3)

//图片视图外侧间距
let CPJPictureViewOutterMargin = CGFloat(12)

//图片视图宽度
let CPJPictureViewWidth = kScreenWidth - 2 * CPJPictureViewOutterMargin

//图片视图每个图片宽度
let CPJPictureItemWidth = ( CPJPictureViewWidth - 2 * CPJPictureViewInnerMargin)/3






